﻿/*************************************
 * 
 *      创建：wangpan
 * 
 *      时间：2016-03-25
 *      
 *      描述：活动模块窗体消息传递
 * 
 * ***********************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NF_Web.Event
{
    /// <summary>
    /// 活动窗口消息传递类
    /// </summary>
    public static class ActiveEvent
    {
        public delegate void MinFormEventHanld();

        public static event MinFormEventHanld MinFormEvent;
        /// <summary>
        /// 通知主窗体最小化
        /// </summary>
        public static void MinForm()
        {
            if (MinFormEvent != null)
                MinFormEvent();
        }



        public delegate void GoToActiveListDelegate();

        public static event GoToActiveListDelegate ActiveListEvent;

        /// <summary>
        /// 跳转到活动列表界面
        /// </summary>
        public static void GoActiveList()
        {
            if (ActiveListEvent != null)
                ActiveListEvent();
        }
    }
}
